{% extends "bootstrap/base.html" %}
{% block title %}登陆页{% endblock %}

{% block content %}
<div class="container">
    <form method='post'>
        {{ form.csrf_token }}
        <div class="form-group">
            <label for="exampleInputEmail1">{{ form.username.label }}</label>
            {{ form.username(class='form-control',placeholder="Username") }}
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">{{ form.password.label }}</label>
            {{ form.password(class='form-control',placeholder="Password") }}
        </div>
        {{ form.submit(class="btn btn-default") }}
    </form>
</div>
<hr>
{% with messages = get_flashed_messages() %}
  {% if messages %}
    <ul class=flashes>
    {% for message in messages %}
      <li>{{ message }}</li>
    {% endfor %}
    </ul>
  {% endif %}
{% endwith %}


{% endblock %}
{% block scripts %}
<script>
</script>
{{super()}}
{% endblock %}